package dfbz.hpmework5;

public class duck extends fowl{
    public duck() {
    }

    public duck(int age, String color) {
        super(age, color);
    }

    @Override
    public void eat() {
        System.out.println(super.getAge()+"岁的"+super.getColor()+"的鸭子在吃饭");
    }
    public void youyong(){
        System.out.println(super.getAge()+"岁的"+super.getColor()+"的鸭子在游泳");
    }
}
